package com.ruoyi.caigou.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购比价对象 finer_buy_compare_price
 * 
 * @author lvql
 * @date 2024-11-01
 */
public class BuyComparePrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String code;

    /** 源单据号 */
    @Excel(name = "源单据号")
    private String sourceCode;

    /** 单据阶段 */
    @Excel(name = "单据阶段")
    private Integer docStage;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date docDate;

    /** 制单人主键id */
    @Excel(name = "制单人主键id")
    private Integer docMakeUserId;

    /** 审批结果 */
    private Integer approvalResult;

    /** 审批意见 */
    private String approvalRemark;

    /** 审核人用户id */
    private Integer approvalUserId;

    /** 是否生效 */
    private Integer isEffect;

    /** 是否关闭 */
    private Integer isClose;

    /** 是否作废 */
    private Integer isCancel;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }
    public void setDocStage(Integer docStage) 
    {
        this.docStage = docStage;
    }

    public Integer getDocStage() 
    {
        return docStage;
    }
    public void setDocDate(Date docDate) 
    {
        this.docDate = docDate;
    }

    public Date getDocDate() 
    {
        return docDate;
    }
    public void setDocMakeUserId(Integer docMakeUserId) 
    {
        this.docMakeUserId = docMakeUserId;
    }

    public Integer getDocMakeUserId() 
    {
        return docMakeUserId;
    }
    public void setApprovalResult(Integer approvalResult) 
    {
        this.approvalResult = approvalResult;
    }

    public Integer getApprovalResult() 
    {
        return approvalResult;
    }
    public void setApprovalRemark(String approvalRemark) 
    {
        this.approvalRemark = approvalRemark;
    }

    public String getApprovalRemark() 
    {
        return approvalRemark;
    }
    public void setApprovalUserId(Integer approvalUserId) 
    {
        this.approvalUserId = approvalUserId;
    }

    public Integer getApprovalUserId() 
    {
        return approvalUserId;
    }
    public void setIsEffect(Integer isEffect) 
    {
        this.isEffect = isEffect;
    }

    public Integer getIsEffect() 
    {
        return isEffect;
    }
    public void setIsClose(Integer isClose) 
    {
        this.isClose = isClose;
    }

    public Integer getIsClose() 
    {
        return isClose;
    }
    public void setIsCancel(Integer isCancel) 
    {
        this.isCancel = isCancel;
    }

    public Integer getIsCancel() 
    {
        return isCancel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("sourceCode", getSourceCode())
            .append("docStage", getDocStage())
            .append("docDate", getDocDate())
            .append("docMakeUserId", getDocMakeUserId())
            .append("approvalResult", getApprovalResult())
            .append("approvalRemark", getApprovalRemark())
            .append("approvalUserId", getApprovalUserId())
            .append("isEffect", getIsEffect())
            .append("isClose", getIsClose())
            .append("isCancel", getIsCancel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
